Don't steal the pointer grab from the context menu of the entry. (#148686,
authorMatthias Clasen <maclas@gmx.de>
Mon, 2 Aug 2004 06:09:24 +0000 (06:09 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 2 Aug 2004 06:09:24 +0000 (06:09 +0000)
Mon Aug  2 02:07:43 2004  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkentrycompletion.c (_gtk_entry_completion_popdown):
Don't steal the pointer grab from the context menu of the
entry.  (#148686, Christian Persch)

gtk/gtkentrycompletion.c

index f36d5109255594dfdcb4491f8be73dc16c1466f1..19bec1b80c082249857a2b7fc0be2ddc5044d2c2 100644 (file)
@@ -1386,6 +1386,9 @@ _gtk_entry_completion_popup (GtkEntryCompletion *completion)
 void
 _gtk_entry_completion_popdown (GtkEntryCompletion *completion)
 {
+  if (!GTK_WIDGET_MAPPED (completion->priv->popup_window))
+    return;
+
   completion->priv->ignore_enter = FALSE;
   
   gdk_pointer_ungrab (GDK_CURRENT_TIME);